package com.libraryManage.service;

import com.libraryManage.commons.utils.ResponseEntity;
import com.libraryManage.vo.BookManageVo;
import com.libraryManage.vo.BorrowVo;
import com.libraryManage.vo.UserVo;

import java.util.List;

/**
 * @CreateDate 2021-02-08
 * @Author yufang
 */
public interface UserManageService {

    /**
     * 查询所有用户
     * @param vo
     * @return
     */
    ResponseEntity<List<UserVo>> getUserList(UserVo vo);

    /**
     * 获取用户书架
     * @param id
     * @return
     */
    ResponseEntity<List<BookManageVo>> getBookshelf(int id,int pageNum);

    /**
     * 获取用户借阅记录
     * @param id
     * @return
     */
    ResponseEntity<List<BorrowVo>> getUserBorrow(int id,int pageNum);

    /**
     * 修改用户账号状态 0-》未冻结 1-》已冻结
     * @param id
     * @param state
     * @return
     */
    ResponseEntity<List<UserVo>> updateUserState(int id, int state);
}
